import request from '@/utils/request'
import type { MenuItem } from '@/types'

/**
 * 获取菜单列表
 */
export function getMenuList() {
  return request.get<MenuItem[]>('/menuController/getAllMenu')
}